import 'package:flutter/material.dart';
import 'package:wanxiang_app/widgets/tabs.dart';

typedef void ClickCallBack(String content);
class FilterDialog extends Dialog {
  ClickCallBack callBack;
  FilterDialog({required Key key, required this.callBack}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    List<String> types = [];
    types.add('官方自营');
    types.add('官方代售');
    return Material(
        //透明层
        type: MaterialType.transparency,
        child: Stack(
          children: <Widget>[
            InkWell(
              onTap: (){
                if(callBack!=null){
                  callBack('');
                }
                Navigator.pop(context);
              },
              child: Container(
                width: MediaQuery.of(context).size.width,
                height: MediaQuery.of(context).size.height,
              ),
            ),
            Column(
              children: [
                TabsText(datas:types,title: '商品类型',contentStrCallBack:(str){

                }),
                // TabsText(datas:types,title: '发布时间',contentStrCallBack:(str){
                //
                // })
              ],
            )
          ],
        )
    );
  }
}